function initComplexArea(a,k,h,p,q,z,d,b,l){var f=initComplexArea.arguments;var m=document.getElementById(a);var o=document.getElementById(k);var n=document.getElementById(h);
var e=0;var c=0;var arr=d+""+b;var dbl=d+""+b+""+l;if(p!=undefined){if(d!=undefined){d=parseInt(d);}
else{d=0;}
if(b!=undefined){b=parseInt(b);}
else{b=0;}
if(l!=undefined){l=parseInt(l);}
else{l=0}
n[0]=new Option("请选择",0);for(e=0;e<p.length;e++){if(p[e]==undefined){continue;}
if(f[7]){if(f[7]==true){if(e==0){continue}}}
m[c]=new Option(p[e],e);if(d==e){m[c].selected=true;}
c++}
o[0]=new Option("请选择",0);if(q[d]!=undefined){c=0;for(e=0;e<q[d].length;e++){if(q[d][e]==undefined){continue}
if(f[7]){if((f[7]==true)&&(d!=71)&&(d!=81)&&(d!=82)){if((e%100)==0){continue}}}o[c]=new Option(q[d][e],e);if(arr==e){o[c].selected=true;}c++}}
if(z[arr]!=undefined){c=0;for(e=0;e<z[arr].length;e++){if(z[arr][e]==undefined){continue}
if(f[7]){if((f[7]==true)&&(d!=71)&&(d!=81)&&(d!=82)){if((e%100)==0){continue}}}n[c]=new Option(z[arr][e],e);if(dbl==e){n[c].selected=true}c++}}
if(d==11||d==12||d==31||d==71||d==50||d==81||d==82){if($("#"+h+"_div"))
{$("#"+h+"_div").hide();}}}}
function changeComplexProvince(f,k,e,d){$("input[name='address']").val('');var c=changeComplexProvince.arguments;var h=document.getElementById(e);var g=document.getElementById(d);var b=0;var a=0;removeOptions(h);f=parseInt(f);h[0]=new Option("请选择",0);if(k[f]!=undefined){for(b=0;b<k[f].length;b++){if(k[f][b]==undefined){continue}
if(c[3]){if((c[3]==true)&&(f!=71)&&(f!=81)&&(f!=82)){if((b%100)==0){continue}}}
h[a]=new Option(k[f][b],b);a++}}
removeOptions(g);g[0]=new Option("请选择",0);if(f==11||f==12||f==31||f==71||f==50||f==81||f==82){if($("#"+d+"_div"))
{$("#"+d+"_div").hide();}}
else{if($("#"+d+"_div")){$("#"+d+"_div").show();}}}
function changeCity(c,a,t){$("input[name='address']").val('');var ProvincenNum=$("#seachprov").val();if(ProvincenNum==11||ProvincenNum==12||ProvincenNum==31||ProvincenNum==71||ProvincenNum==50||ProvincenNum==81||ProvincenNum==82){return;}
$("#"+a).html('<option value="0" >请选择</option>');$("#"+a).unbind("change");c=parseInt(c);var _d=sub_arr[c];var str="";str+="<option value='0' >请选择</option>";for(var i=c*100;i<_d.length;i++){if(_d[i]==undefined)continue;str+="<option value='"+i+"' >"+_d[i]+"</option>";}
$("#"+a).html(str);}
function removeOptions(c){if((c!=undefined)&&(c.options!=undefined)){var a=c.options.length;for(var b=0;b<a;b++){c.options[0]=null;}}}